package com.request;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单商品明细请求体
 * @author zhang
 */
@Data
@ApiModel("订单商品明细请求体")
public class ProductListReq implements Serializable {
    /**
     * 商品名称，限制长度128
     */
    @ApiModelProperty(value = "商品名称", required = true)
    @JSONField(name = "sku_name")
    private String skuName;

    /**
     * 商品编码，限制长度64
     */
    @ApiModelProperty(value = "商品编码", required = true)
    @JSONField(name = "src_product_no")
    private String srcProductNo;

    /**
     * 商品数量，精确到小数点后两位
     */
    @ApiModelProperty(value = "商品数量", required = true)
    private BigDecimal count;

    /**
     * 商品单位，默认：件
     */
    @ApiModelProperty(value = "商品单位", required = false)
    private String unit;
}
